<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/6
 * Time: 11:25
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait CaptchaTrait
{
    use BaseTrait;

    // 验证秘钥
    protected $loginSession;
    // 手机号
    protected $mobile;
    // 验证码
    protected $captcha;

    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->mobile = $request->input('mobile', '');
        $this->captcha = $request->input('captcha', '');
    }
}